package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Pv;
import com.example.rbacmanage.service.app.PvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/app/pv")
public class AppPvController {
    @Autowired
    private PvService pvService;

    @PostMapping("/add")
    public Result add(@RequestBody Pv pv){
        pvService.save(pv);
        return Result.success();
    }

}
